package cn.wolfcode.transfer.qo;

import cn.wolfcode.transfer.util.BusinessConsumptionUtil;
import cn.wolfcode.transfer.util.LevelUtil;
import cn.wolfcode.transfer.util.UserContext;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class NoticeQueryObject extends QueryObject {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date BeginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date EndDate;
    private Integer ByLevel;
    private Boolean ByPublishStatus;
    public Long getId(){
        return UserContext.getCurrentUser().getId();
    }
    public String getLevelName() {
        String s = LevelUtil.forLevelValue(this.ByLevel);
        return s;
    }

    public Date getBeginDate() {
        return BeginDate;
    }

    public void setBeginDate(Date beginDate) {
        BeginDate = beginDate;
    }

    public Date getEndDate() {
        return EndDate;
    }

    public void setEndDate(Date endDate) {
        EndDate = endDate;
    }

    public Integer getByLevel() {
        return ByLevel;
    }

    public void setByLevel(Integer byLevel) {
        ByLevel = byLevel;
    }

    public Boolean getByPublishStatus() {
        return ByPublishStatus;
    }

    public void setByPublishStatus(Boolean byPublishStatus) {
        ByPublishStatus = byPublishStatus;
    }
}
